<%@ page import="com.techedge.insidetrack.User" %>


<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'userid', 'error')} required">
	<label for="userid">
		<g:message code="user.userid.label" default="Userid" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="userid" maxlength="30" pattern="${userInstance.constraints.userid.matches}" required="" value="${userInstance?.userid}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="user.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="30" pattern="${userInstance.constraints.name.matches}" required="" value="${userInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'password', 'error')} required">
	<label for="password">
		<g:message code="user.password.label" default="Password" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="password" name="password" maxlength="12" pattern="${userInstance.constraints.password.matches}" required="" value="${userInstance?.password}"/>
</div>


<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="user.email.label" default="Email" />
		
	</label>
	<g:field type="email" name="email" value="${userInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'twitterId', 'error')} ">
	<label for="twitterId">
		<g:message code="user.twitterId.label" default="Twitter Id" />
		
	</label>
	<g:textField name="twitterId" value="${userInstance?.twitterId}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'avatar', 'error')} ">
	<label for="avatar">
		<g:message code="user.avatar.label" default="Avatar" />
		
	</label>
	<input type="file" id="avatar" name="avatar" />
</div>

